/*
 Class:     DiscogsInfo
 Author:    Lusana A
 Desc:      Interfaces with Discogs API
*/

#include <vector>
#include <mxml.h>
#include <org/rule.h>

#ifndef DISCOGINFO_H
#define DISCOGINFO_H

namespace Org
{

class DiscogsInfo
{
    public:
        DiscogsInfo();
        vector<Org::Release> parseDiscogsXml(char* xml);
    };
}

#endif // DISCOGINFO_H

/*<resp stat="ok" version="1.0" requests="3">
    <label>
        <name>Def Recordings Ltd</name>
        <parentLabel>Sudden Def Recordings</parentLabel>
        <releases>
            <release id="991995" status="Accepted">
                <catno>DEF LTD 001</catno>
                <artist>Masheen &amp; Kano (3)</artist>
                <title>Blunt Slide / Resin</title>
                <format>12"</format>
            </release>
            <release id="997204" status="Accepted">
                <catno>DEF LTD 002</catno>
                <artist>Quadrant (4) / Dioptrics</artist>
                <title>Lost City / Insidious</title>
                <format>12", Promo</format>
            </release>
            <release id="1172104" status="Accepted">
                <catno>DEF LTD 003</catno>
                <artist>Kano (3) &amp; Tenebra (2)</artist>
                <title>Cobolt / Hidden Voices</title>
                <format>12"</format>
            </release>
            <release id="1340162" status="Accepted">
                <catno>DEF LTD 004</catno>
                <artist>Sleeper Cell</artist>
                <title>Asymmetric  / Trauma Centre</title>
                <format>12"</format>
            </release>
            <release id="1407599" status="Accepted">
                <catno>DEF LTD 005</catno>
                <artist>Skynet &amp; NC-17 / NC-17 Ft. KC</artist>
                <title>Mean Streets / Sea Of Life</title>
                <format>12", W/Lbl, Promo, Sti</format>
            </release>
            <release id="1431388" status="Accepted">
                <catno>DEF LTD 006</catno>
                <artist>Aspect (3) &amp; Gremlinz / Ink* &amp; Gremlinz</artist>
                <title>Streets / Black Star</title>
                <format>12"</format>
            </release>
            <release id="1561550" status="Accepted">
                <catno>DEF LTD 007</catno>
                <artist>Subterra &amp; Lean (5) &amp; Bazil (2)</artist>
                <title>Calling / Ancient Rage</title>
            <format>12"</format></release></releases></label></resp>
*/
